<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>轮播图</title>
  <link rel="stylesheet" href="./iconfont/iconfont.css">
  <style>
    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    ul,
    ol {
      list-style: none;
    }

    a {
      text-decoration: none;
      color: #fff;
    }

    .box {
      display: flex;
      justify-content: space-between;
      position: relative;
      overflow: hidden;
      width: 564px;
      height: 315px;
      /* background-color: pink; */
      margin: 50px auto;
    }

    .box ul {
      display: flex;
    }

    .box li img {
      display: block;
      width: 564px;
      height: 315px;
      border-radius: 20px;
    }

    .box .pre,
    .box .next {
      display: none;
      position: absolute;
      width: 20px;
      height: 30px;
      line-height: 30px;

      background-color: rgba(0, 0, 0, .3);
      top: 50%;
      transform: translateY(-50%);

    }

    .box .pre {
      left: 0;
      border-radius: 0 15px 15px 0;
    }

    .box .next {
      right: 0;
      text-align: center;
      border-radius: 15px 0 0 15px;
    }

    .box:hover .pre,
    .box:hover .next {
      display: block;
    }

    .box ol {
      display: flex;
      position: absolute;
      top: 100%;
      left: 50%;
      transform: translateX(-50%);
      margin-top: -30px;
      height: 13px;
      background-color: rgba(255, 255, 255, .3);
      border-radius: 10px;
    }

    .box ol li {
      width: 8px;
      height: 8px;
      line-height: 13px;
      background-color: #fff;
      border-radius: 4px;
      margin: 2px;
    }

    .box ol .active {
      background-color: orange;
    }
  </style>
</head>

<body>
  <div class="box">
    <ul>
      <li><a href="#"><img src="./image/banner1.jpg" alt=""></a></li>
      <li><a href="#"><img src="./image/banner2.jpg" alt=""></a></li>
      <li><a href="#"><img src="./image/banner3.jpg" alt=""></a></li>
    </ul>
    <a href="#" class="pre"> <span class="iconfont icon-zuoce"></span></a>
    <a href="#" class="next"><span class="iconfont icon-youce"></span></a>
    <ol>
      <li></li>
      <li class="active"></li>
      <li></li>
    </ol>
  </div>
</body>

</html>